Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@hashicorp/react-image
Advanced tools
super optimized image element, pulls from dato and formats for 7 screen sizes in two formats. Skips optimization for SVGs.
⚠️Avoid using this component to render images local to your project. This component expects image source URLs to be from DatoCMS (e.g coming from 'https://www.datocms-assets.com`) as it appends query parameters to control various image attributes like format and sizing. Dato is using Imgix under the hood. ⚠️
Super optimized image element, pulls from dato and formats for 7 screen sizes in two formats. Skips optimization for SVGs.
url
(str): url of the image docsalt
(str): [optional] alt text for the image docsformat
(str): [optional] format of the image, for example svg
, jpg
, png
, etc.steps
(arr): [optional] array of screen sizes to optimize forsizes
(str): [optional] same as sizes on an img tag docsaspectRatio
(arr): [optional] automatically crops to aspect ratio. first two items in the array are the ratio (ex. [16,9]
), and the third is the base width that images will be cropped to in IE, which doesn't support srcset (ex. [16,9,500]
).imgixOptions
(obj): [optional] params passed directly to imgix, reference hereSee the props file for more details.
hero
logo-grid
nav
person-list
resource-list
text-and-image
FAQs
super optimized image element, pulls from dato and formats for 7 screen sizes in two formats. Skips optimization for SVGs.
We found that @hashicorp/react-image demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 35 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.